#include "form_delivery.h"
#include "ui_form_delivery.h"
#include <QDebug>

Form_delivery::Form_delivery(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form_delivery)
{
    ui->setupUi(this);
    connect(&fsd, SIGNAL(return_delivery()), this, SLOT(exchangeDeliverySlot()));
}

Form_delivery::~Form_delivery()
{
    delete ui;
}

void Form_delivery::exchangeDeliverySlot()
{
    this->show();
    fsd.hide();
}

/* send */
void Form_delivery::on_btn_send_clicked()
{
    qDebug() << "send goods, into next interface";
    this->hide();
    fsd.show();

}
/* fetch */
void Form_delivery::on_btn_fetch_clicked()
{
    qDebug() << "fetch goods";
}
/* quit */
void Form_delivery::on_btn_quit_clicked()
{
    emit return_login();
}
/* search order */
void Form_delivery::on_btn_search_order_clicked()
{
    qDebug() << "search goods";
}
